<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/includes/tags.jsp" %>
<!-- webroot://WEB-INF/includes/admin/customer/editUser.jsp -->
<div class="center_text">
<s:set var="user" value="selectedUser"/>
<s:form namespace="/admin" action="updateUser">
    <s:hidden name="login" />
    <table>
        <tr>
            <td>
                Login :
            </td>
            <td>
                    ${user.login}
            </td>
        </tr>
        <tr>
            <td>
                Role :
            </td>
            <td>
                <label>
                    <select name="roleId">
                        <s:iterator var="role" value="roles">
                            <s:if test="user.role = role.id">
                                <s:set var="selected" value="selected"/>
                            </s:if>
                            <s:else>
                                <s:set value="" var="selected"/>
                            </s:else>
                            <option value="${role.id}" selected="${selected}">${role.name} - ${role.permission}</option>
                        </s:iterator>
                    </select>
                </label>
            </td>
        </tr>
        <tr>
            <td>

            </td>
            <td>
                <s:submit/>
            </td>
        </tr>
    </table>
</s:form>
    </div>
<!-- end webroot://WEB-INF/includes/admin/customer/editUser.jsp -->